/*
 * Like other variables we can declare different type of pointers (i.e. int *, float *, char *, .. etc)
 * Pointer actually is an unsigned integer value, data type at the time of declaration tells compiler that pointer contains address 
 * of particular data type
 * Here we are trying to use different type of pointers and accessing its values using pointer
 */

#include <stdio.h>

int main()
{
	char c, *cc;
	int i, *ii;
	float f, *ff;

	c = 'A';
	i = 54;
	f = 3.14;

	cc = &c;
	ii = &i;
	ff = &f;

	printf("Address contained in cc = %u\n", cc);
	printf("Address contained in ii = %u\n", ii);
	printf("Address contained in ff = %u\n", ff);

	printf("Value of c = %c\n", *cc);
	printf("Value of i = %d\n", *ii);
	printf("Value of f = %f\n", *ff);
	

	return 0;
}
